<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡属性</title>
    <style>
    img {
        width: 200px;
        height: 200px;
        transition: all 2s;
    }
    img:hover{
        width: 500px;
        height: 500px;

    }
    </style>

</head>
<body>
    <img src="./sprite.png" alt="">
</body>
</html>